/*
 * @Author: ShaXin
 * @Date: 2022-01-11 15:53:11
 * @LastEditors: jgg
 * @LastEditTime: 2022-02-09 17:04:12
 */
import request from '../utils/request'


const abcApi = {}
// 传感器
abcApi.pageList = (params) => {
    return request({
        url: '/baseinfo/sensor/findSensorByPageList',
        method: 'get',
        params:params
    })
}

abcApi.findById = (params) => {
    return request({
        url: `/baseinfo/sensor/findById`,
        method: 'get',
        params:params
    })
}
abcApi.deleteInfo = (params) => {
    return request({
        url: `/baseinfo/sensor/delete`,
        method: 'DELETE',
        params:params
    })
}
abcApi.save = (params) => {
    return request({
        url: '/baseinfo/sensor/saveSensor',
        method: 'post',
        data:params
    })
}
abcApi.update = (params) => {
    return request({
        url: `/baseinfo/sensor/update`,
        method: 'post',
        data:params
    })
}
//
abcApi.findAllStation = (params) => {
    return request({
        url: `/baseinfo/camera/findAllStation`,
        method: 'get',
        params:{}
    })
}

export default abcApi